import request from '@/utils/request'

export function login(data) {
  return request({
    url: `/auth/login`,
    method: 'post',
    data
  })
}

export function getVerify(data) {
  return request({
    url: `/auth/getCaptcha`,
    method: 'get',
    params: data
  })
}

export function resetPassword(data) {
  return request({
    url: `/auth/changePassword`,
    method: 'post',
    data
  })
}

export function getInfo(data) {
  return request({
    url: `/auth/getLoginUserInfo`,
    method: 'get',
    params: data
  })
}
